<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<%@ taglib uri="/struts-tags" prefix="s" %>

<s:url id="urlRegioni" action="elencoRegioni" namespace="/commons"></s:url>
<s:url id="urlProvince" action="elencoProvince" namespace="/commons" ></s:url>

<h2>Inserisci i tuoi dati - arranged by Giovanni Palmese</h2>
<s:div id="div1">
	<s:form action="RiepilogoInsert">
		<table>
			<tr>
				<td><s:textfield name="RegNome" label="NOME "></s:textfield> 
				<s:textfield name="RegCognome" label="COGNOME "></s:textfield> 
				<s:textfield name="RegTelefono" label="TELEFONO "></s:textfield> 
				<s:textfield name="RegEmail" label="EMAIL "></s:textfield> 
				<s:textfield name="Piva" label="P.IVA "></s:textfield>
	          
             <sj:select id="regioneSelect"
			            name="regioneSelect"
			            key="registrazione.regioni"
			            href="%{urlRegioni}"         
			            list="listRegioni"
			            listKey="idregione"
			            listValue="descrizione" 
			            onChangeTopics="ricaricaProvince"    />
			            
            <sj:select id="provinciaSelect"
			           name="provinciaSelect"
			           ley="registrazione.province"
			           href="%{urlProvince}"         
			           list="provinciaDb"
			           listKey="idProvincia"
			           listValue="descrizione"
			           reloadTopics="ricaricaProvince" />
						
						<s:textfield
						name="Comune" label="COMUNE "></s:textfield> <s:textfield
						name="Indirizzo" label="INDIRIZZO "></s:textfield> <s:textfield
						name="NomeAttivita" label="NOME ATTIVITA' "></s:textfield></td>
			</tr>
			<tr>
				<td><s:submit name="Riepilogo" value="AVANTI"></s:submit></td>
			</tr>
		</table>
	</s:form>
</s:div>
